import 'package:flutter/material.dart';

Widget loadAssetImage(
  String name, {
  double? width,
  double? height,
  Color? color
}) {
  return Image.asset(
    _getImgPath(name),
    height: height,
    width: width,
    fit: BoxFit.cover,
    color: color,
  );
}

String _getImgPath(String name) {
  return 'images/$name.png';
}
